import { WeaTools } from 'ecCom'

//报表历史数据
export const queryHistoryData = params => {
    return WeaTools.callApi('/api/fna/rptHistory/queryData', 'GET', params);
}

//报表共享列表页面
export const queryShareModalDataP = params => {
    return WeaTools.callApi('/api/fna/rptHistory/shareData', 'GET', params);
}

//历史记录高级搜索
export const queryHistoryInfo = params => {
	return WeaTools.callApi('/api/fna/rptHistory/queryInfo', 'GET', params);
}

//保存报表
export const saveReportP = params => {
	return WeaTools.callApi('/api/fna/rptHistory/saveNew', 'GET', params);
} 

//共享的保存
export const shareReport = params => {
	return WeaTools.callApi('/api/fna/rptHistory/share', 'GET', params);
} 

//删除共享
export const deleteShareReport = params => {
	return WeaTools.callApi('/api/fna/rptHistory/deleteShare', 'GET', params);
}

//获取随机guid
export const getGUIDP = params => {
	return WeaTools.callApi('/api/fna/reportBase/guid', 'GET', params);
}  

//删除历史查询
export const historyDelete = params => {
	return WeaTools.callApi('/api/fna/rptHistory/delete', 'GET', params);
}

//共享页面初始化
export const queryShareAddInfo = params =>{
	return WeaTools.callApi('/api/fna/rptHistory/shareAddInfo', 'GET', params);
}

//获取报表表单
export const getModalForm = params =>{
	return WeaTools.callApi('/api/fna/rptHistory/getModalForm', 'GET', params);
}